﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PClusterModel.Comparer
{
    public class KeyValuePairComparerByValue<TKey, TValue> : IComparer<KeyValuePair<TKey, TValue>>
    {
        #region IComparer<KeyValuePair<TKey,TValue>> Members

        public int Compare(KeyValuePair<TKey, TValue> x, KeyValuePair<TKey, TValue> y)
        {
            return Comparer<TValue>.Default.Compare(x.Value, y.Value);
        }

        #endregion
    }
}
